import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import './css/components.css'
import './css/base.css'
import 'antd-mobile/dist/antd-mobile.css';
import App from './App';
import {AppContainer} from 'react-hot-loader'
import * as serviceWorker from './serviceWorker';
import './js/font';
import {Provider} from 'react-redux';
import store from './store/store';

ReactDOM.render(
    <Provider store={store}>
        <AppContainer>
            <App/>
        </AppContainer>
    </Provider>
    , document.getElementById('root')
);

// Webpack Hot Module Replacement API
if (module.hot) {
    module.hot.accept();
}

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
